from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token

from apps.users.views import LoginView, RegisterView, UserModelView, UserView

urlpatterns = [
    path('login/', LoginView.as_view()),
    path('register/', RegisterView.as_view()),
]

from rest_framework.routers import DefaultRouter, SimpleRouter

# 可以处理视图的路由器
router = SimpleRouter()
# 向路由器中注册视图集

# 追加路由
urlpatterns += router.urls
